<!DOCTYPE html>
{% load static %}
<html lang="zh-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>机械臂实验系统 - 欢迎</title>
    <!-- 添加网站图标 -->
    <link rel="icon" type="image/svg+xml" href="{% static 'img/favicon.svg' %}">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            margin: 0;
            padding: 0;
            height: 100vh;
            overflow: hidden;
            font-family: 'Arial', sans-serif;
        }
        
        .video-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }
        
        .video-container video {
            min-width: 100%;
            min-height: 100%;
            object-fit: cover;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        
        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            z-index: 0;
        }
        
        .content {
            position: relative;
            z-index: 1;
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            text-align: center;
            padding: 0 20px;
        }
        
        h1 {
            font-size: 3.5rem;
            margin-bottom: 2rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        p {
            font-size: 1.5rem;
            margin-bottom: 3rem;
            max-width: 700px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        .btn-enter {
            padding: 1rem 3rem;
            font-size: 1.5rem;
            background-color: #007bff;
            border: none;
            border-radius: 50px;
            color: white;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .btn-enter:hover {
            transform: translateY(-3px);
            box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
            background-color: #0069d9;
            color: white;
        }
        
        @media (max-width: 768px) {
            h1 {
                font-size: 2.5rem;
            }
            
            p {
                font-size: 1.2rem;
            }
            
            .btn-enter {
                padding: 0.8rem 2rem;
                font-size: 1.2rem;
            }
        }
    </style>
</head>
<body>
    <div class="video-container">
        <!-- MP4背景视频，占位，后续会由用户替换 -->
        <video autoplay muted loop id="bg-video">
            <source src="{% static 'video/background.mp4' %}" type="video/mp4">
            您的浏览器不支持视频标签。
        </video>
    </div>
    <div class="overlay"></div>
    
    <div class="content">
        <h1>机械臂实验系统</h1>
        <p>欢迎使用我们的机械臂实验平台，在这里您可以亲自体验控制机械臂拧螺丝的全过程，提升您的工程实践能力。</p>
        <a href="{% url 'login' %}" class="btn btn-enter">点击进入</a>
    </div>
    
    <script>
        // 后续如果需要添加任何交互效果可以在这里实现
    </script>
</body>
</html>